<template>
  <div>测试模拟数据</div>
</template>

<script>
import { TestApi } from '@/api/test'

export default {
  name: '',
  data() {
    return {}
  },
  methods: {
    // 获取列表
    async getList() {
      const params = { aa: 1 }
      const res = await TestApi.getList(params)
      console.log(res)
    },
    // 添加
    async addItem() {
      const postData = { a: 1 }
      const res = await TestApi.addItem(postData)
      console.log(res)
    }
  },
  mounted() {
    this.getList()
    this.addItem()
  }
}
</script>

<style scoped>

</style>
